Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetEnum Method / GetEnum<T>(IPdfDict,PdfName,T) Method
The current dictionary.
The key identifying the value.
The default value.

In This Topic
    GetEnum<T>(IPdfDict,PdfName,T) Method
    In This Topic
    Gets the enum value associated with the specified key. If the value does not exist or cannot be converted to an enum, returns defValue.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As T _
    ) As T
    public static T GetEnum<T>( 
       IPdfDict dict,
       PdfName key,
       T defValue
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    defValue
    The default value.

    Type Parameters

    T

    Return Value

    The value associated with the specified key, or defValue.
    See Also